package com.tao.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {
	
	@RequestMapping("login")
	public String login(String name,String age, String pwd,Model model,HttpSession session){
		System.out.println("LoginController-----login");
		model.addAttribute("name", age);
		session.setAttribute("name", name);
		return "success";
	}

}
